﻿<UserControl
    x:Class="DiscoveryLogic.UI.Layouts.Controls.PageTurn"
    xmlns="http://schemas.microsoft.com/client/2007"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <Canvas x:Name="Root" 
            Opacity ="1" Canvas.Left="400" >
    
  <Canvas.Resources>
    <Storyboard x:Name="timerStoryboard">
      <DoubleAnimation x:Name="animation" Duration="00:00:0.00" Storyboard.TargetName="InvisibleRect" Storyboard.TargetProperty="Width" />
    </Storyboard>
    <Storyboard x:Name="FadeIn">
      <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PageTurnCanvas" Storyboard.TargetProperty="(UIElement.Opacity)">
        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0" KeySpline="1,0,1,1"/>
        <SplineDoubleKeyFrame KeyTime="00:00:01.0000000" Value="1" KeySpline="0.714,0,1,1"/>
      </DoubleAnimationUsingKeyFrames>
    </Storyboard>
    <Storyboard x:Name="SlideIn">
      <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="PageTurnCanvas" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
        <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0" KeySpline="0,0,0.504,1"/>
        <SplineDoubleKeyFrame KeyTime="00:00:01.1000000" Value="-400" KeySpline="0,0,0.5,1"/>
      </DoubleAnimationUsingKeyFrames>
    </Storyboard>
  </Canvas.Resources>
  <Canvas.RenderTransform>
    <TransformGroup>
      <ScaleTransform ScaleX="1" ScaleY="1"/>
      <SkewTransform AngleX="0" AngleY="0"/>
      <RotateTransform Angle="0"/>
      <TranslateTransform X="0" Y="0"/>
    </TransformGroup>
  </Canvas.RenderTransform>

  <Rectangle Visibility="Collapsed" x:Name="InvisibleRect" />

  <Canvas Canvas.Top="74" Canvas.Left="37"  x:Name="PageCanvas" >
    <Image Canvas.Top="25" Canvas.Left="375" Source="/Assets/shadowPage01.png" Opacity="0.8"/>
    <Image x:Name="shadowBehindPage01" Canvas.Top="25" Canvas.Left="36" Opacity="0" IsHitTestVisible="false" Source="/Assets/shadowPage01.png"/>
    <Canvas x:Name="evenPageCanvas" Canvas.Top="30" Canvas.Left="380" Opacity="1"/>
    <Polygon x:Name="shadowOnEvenPage" Canvas.Top="30" Canvas.Left="380" Points="340,430 340,430 340,430 340,430" Fill="Black" Opacity="0"/>
    <Canvas x:Name="oddPageCanvas" Canvas.Top="30" Canvas.Left="40" Opacity="1"/>
    <Canvas x:Name="mouseCaptureCanvas" Canvas.Top="30" Canvas.Left="40" Opacity="0" IsHitTestVisible="false" Background="transparent" Width="720" Height="430"/>
  </Canvas>

        </Canvas>
</UserControl>


